libxl: add current_memkb to libxl_dominfo
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 22 Sep 2010 16:23:22 +0000 (17:23 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 22 Sep 2010 16:23:22 +0000 (17:23 +0100)
commit6f566d13678ed1a13926e464ce4c98c19bb00f99
tree1ee237f57a96984133bc9dd40517eab3f0839023
parent9b0bd3d732b8e7a0dc75810b3c5ebbcc3bab2742
libxl: add current_memkb to libxl_dominfo

currently xcinfo2xlinfo reads tot_pages and uses that data to calculate
max_memkb, while tot_pages is the memory currently used by the domain
and max_pages is the theoretical maximum.
This patch calculates max_memkb from max_pages and introduces
current_memkb to store the current memory usage.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.idl
tools/libxl/xl_cmdimpl.c